/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com;

import com.ejb.PersonaEJBLocal;
import java.io.Serializable;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import remoting.service.RemotingDestination;


/**
 *
 * @author cubika
 */
@RemotingDestination
@ManagedBean
@RequestScoped
public class Prueba implements Serializable {
    

   
    @EJB
    PersonaEJBLocal personaEJBLocal;

 
    /** Creates a new instance of Prueba */
    public Prueba() {


        //FacesContext.getCurrentInstance().getAttributes().put("prueba", this);

    }
    public List<Person> getPersonas(){
        return personaEJBLocal.getAllPerson();
    }
     public List getPersonas2(Object parameter){
        return personaEJBLocal.getAllPerson();
    }

   
    
}
